﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="JiaoQuXJHYS.aspx.cs" Inherits="Web.Pages.YongShui.JiaoQuXJHYS" Theme="Default" %>

<%@ Register Assembly="DevExpress.Web.v15.2, Version=15.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web" TagPrefix="dx" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <script src="../../../JS/jquery.js"></script>
    <script src="../../../JS/AddEditCancel.js"></script>
    <script type="text/javascript">
       
        function display(op, id) {
            hdCollection.Set("ID", id);
            if (op == "add") {
                listCover(true, "gridTab1");
                tab1btnAdd.SetVisible(false);
                $("#ASPxPageControl1_tab1GridViewContentTable").css("display", "block");
                lblOperateTip.SetText("添加");
                InitText1();
                cbmQuXian.SetEnabled(true);
                cbmQuXian.Focus();
            }
            else if (op == "edit") {
                listCover(true, "gridTab1");
                tab1btnAdd.SetVisible(false);
                lblOperateTip.SetText("修改");
                $("#ASPxPageControl1_tab1GridViewContentTable").css("display", "block");
                ASPxCallback1.PerformCallback("edit");
            }
            else if (op == "init") {
                listCover(false, "gridTab1");
                $("#ASPxPageControl1_tab1GridViewContentTable").hide();
                tab1btnAdd.SetVisible(true);
            }
            else if (op == "add2") {
                listCover(true, "gridTab2");
                tab2btnAdd.SetVisible(false);
                $("#ASPxPageControl1_tab2GridViewContentTable").css("display", "block");
                lblOperateTip.SetText("添加");
                InitText2();
                cmbquxian2.SetEnabled(true);
                cmbquxian2.Focus();
            }
           else if (op == "edit2") {
                listCover(true, "gridTab2");
                tab2btnAdd.SetVisible(false);
                lblOperateTip.SetText("修改");
                $("#ASPxPageControl1_tab2GridViewContentTable").css("display", "block");
                ASPxCallback1.PerformCallback("edit2");
            }
           else if (op == "init2") {
               listCover(false, "gridTab2");
                $("#ASPxPageControl1_tab2GridViewContentTable").hide();
                tab2btnAdd.SetVisible(true);
            }
        }

        function del(id) {
            hdCollection.Set("ID", id);
            if (confirm("确认删除吗？")) {
                ASPxCallback1.PerformCallback("del");
            }
            else {
                hdCollection.Set("ID", -1);
            }
        }
        function del2(id) {
            hdCollection.Set("ID", id);
            if (confirm("确认删除吗？")) {
                ASPxCallback1.PerformCallback("del2");
            }
            else {
                hdCollection.Set("ID", -1);
            }
        }

        function save() {
            //保存前验证
            if ((txtJiHuaH_GY.GetText() != "" || txtJiHuaH_FGY.GetText() != "") && parseInt(txtJiHuaH_HJ.GetText()) != parseInt(txtJiHuaH_GY.GetText()) + parseInt(txtJiHuaH_FGY.GetText())) {
                alert("计划户数合计输入错误！");
                txtJiHuaH_HJ.Focus();
            }
            else if ((txtJiHuaS_GY.GetText() != "" || txtJiHuaS_FGY.GetText() != "") && parseInt(txtJiHuaS_HJ.GetText()) != parseInt(txtJiHuaS_GY.GetText()) + parseInt(txtJiHuaS_FGY.GetText())) {
                alert("计划水量合计输入错误！");
                txtJiHuaS_HJ.Focus();
            }
            else if ((txtXinShuiL_GY.GetText() != "" || txtXinShuiL_FGY.GetText() != "") && parseInt(txtXinShuiL_HJ.GetText()) != parseInt(txtXinShuiL_GY.GetText()) + parseInt(txtXinShuiL_FGY.GetText())) {
                alert("新水量(合计输入错误！");
                txtXinShuiL_HJ.Focus();
            }
            else if ((txtJiaJiaSL_GY.GetText() != "" || txtJiaJiaSL_FGY.GetText() != "") && parseInt(txtJiaJiaSL_HJ.GetText()) != parseInt(txtJiaJiaSL_GY.GetText()) + parseInt(txtJiaJiaSL_FGY.GetText())) {
                alert("加价水量合计输入错误！");
                txtJiaJiaSL_HJ.Focus();
            }
            //else if (parseFloat(txtJiaJiaSF_HJ.GetText()) != parseFloat(txtJiaJiaSF_GY.GetText()) + parseFloat(txtJiaJiaSF_FGY.GetText())) {
            else if ((txtJiaJiaSF_GY.GetText() != "" || txtJiaJiaSF_FGY.GetText() != "") && Math.abs(parseFloat(txtJiaJiaSF_GY.GetText()) + parseFloat(txtJiaJiaSF_FGY.GetText()) - parseFloat(txtJiaJiaSF_HJ.GetText())) > 0.00001) {
                alert("加价水费合计输入错误！");
                txtJiaJiaSF_HJ.Focus();
            }
            else {
                listCover(false, "gridTab1");
                ASPxCallback1.PerformCallback("save");
            }
        }
        function save2() {
            listCover(false, "gridTab2");
            ASPxCallback1.PerformCallback("save2");
        }

        function ASPxCallback1Complete(rs) {
            var arr = rs.split('|');
            var type = arr[0];
            var state = arr[1];
            if (state != "0") {
                alert(arr[2]);
            }
            else {
                if (type == "edit") {
                    //水量年月
                    txtShuiLiangNY.SetText(arr[3]);
                    //区县
                    cbmQuXian.SetText(arr[4]);
                    //$("#ASPxPageControl1_cbmQuXian_I").v
                    cbmQuXian.SetEnabled(false);
                    //计划户数
                    txtJiHuaH_HJ.SetText(arr[5]);
                    txtJiHuaH_GY.SetText(arr[6]);
                    txtJiHuaH_FGY.SetText(arr[7]);
                    //计划水量
                    txtJiHuaS_HJ.SetText(arr[8]);
                    txtJiHuaS_GY.SetText(arr[9]);
                    txtJiHuaS_FGY.SetText(arr[10]);
                    //新水量
                    txtXinShuiL_HJ.SetText(arr[11]);
                    txtXinShuiL_GY.SetText(arr[12]);
                    txtXinShuiL_FGY.SetText(arr[13]);
                    //加价水量
                    txtJiaJiaSL_HJ.SetText(arr[14]);
                    txtJiaJiaSL_GY.SetText(arr[15]);
                    txtJiaJiaSL_FGY.SetText(arr[16]);
                    //加价水费
                    txtJiaJiaSF_HJ.SetText(arr[17]);
                    txtJiaJiaSF_GY.SetText(arr[18]);
                    txtJiaJiaSF_FGY.SetText(arr[19]);
                    //计划完成率
                    txtJiaHuaWCL.SetText(arr[20]);
                    //供水总量
                    txtGongShuiZL.SetText(arr[21]);
                    //计划用水率
                    txtJiaHuaYSL.SetText(arr[22]);
                    //水平衡户数
                    txtShuiPingWCHS.SetText(arr[23]);
                    //节水项目数
                    txtJieShuiXMS.SetText(arr[24]);
                    //最高日节水量
                    txtZuiGaoRJSL.SetText(arr[25]);
                    //节水项目资金
                    txtJieShuiXMZJ.SetText(arr[26]);
                    //自筹资金
                    txtZiChouZJ.SetText(arr[27]);
                    //节水器具安装件套
                    txtJieShuiQJTS.SetText(arr[28]);
                    //节水器具安装日节
                    txtJieShuiQJSL.SetText(arr[29]);
                    //财政节水资金投入
                    txtCaiZhengZJTR.SetText(arr[30]);
                    
                }
                else if (type == "del") {
                    alert(arr[2]);
                    gvJiHuaYS.PerformCallback();
                }
                else if (type == "save") {
                    alert(arr[2]);
                    display("init", -1);
                    gvJiHuaYS.PerformCallback();
                }
              else  if (type == "edit2") {
                    //水量年月
                  txtShuiLiangNY2.SetText(arr[3]);
                    //区县
                    cmbquxian2.SetText(arr[4]);
                    cmbquxian2.SetEnabled(false);
                  //工业用新水量
                    txtGongYeXSL.SetText(arr[5]);
                  //冷却新水量
                    txtLengQueXSL.SetText(arr[6]);
                    //工业用水重复
                    txtGongYeCFL.SetText(arr[7]);
                  //间接冷却水循
                    txtLengQueXHL.SetText(arr[8]);
                    //工业用水重复
                    txtGongYeCFLv.SetText(arr[9]);
                    //间接冷却水循
                    txtLengQueXHLv.SetText(arr[10]);
                  //锅炉产汽量
                    txtGuoLuCQL.SetText(arr[11]);
                  //工艺用新水量
                    txtGongYiXSL.SetText(arr[12]);
                  //锅炉蒸汽冷凝
                    txtGuoLuHYL.SetText(arr[13]);
                  //工艺水回用量
                    txtGongYiHYL.SetText(arr[14]);
                  //锅炉蒸汽冷凝
                    txtGuoLuHYLv.SetText(arr[15]);
                  //工艺水回用率
                    txtGongYiHYLv.SetText(arr[16]);
                    //工业总产值(现
                    txtGongYeZCZ.SetText(arr[17]);
                  //万元产值新水
                    txtWanYuanXSL.SetText(arr[18]);
                    //城市公共用新
                    txtChengShiXSL.SetText(arr[19]);
                  //间接冷却用新
                    txtLengQueXSL2.SetText(arr[20]);
                  //城市公共用水
                    txtChengShiLYL.SetText(arr[21]);
                  //间接冷却水循
                    txtLengQueXHL2.SetText(arr[22]);
                  //城市公共用水
                    txtChengShiLYL.SetText(arr[23]);
                  //间接冷却水循
                    txtLengQueXHLv.SetText(arr[24]);
                  //非常规
                    txtFeiChangGSL.SetText(arr[25]);
                  //海水利用量
                    txtHaiShuiLYL.SetText(arr[26]);
                    //雨水利用量
                    txtYuShuiLYL.SetText(arr[27]);

                }
                else if (type == "del2") {
                    alert(arr[2]);
                    gvYongShuiLYQK.PerformCallback();
                }
                else if (type == "save2") {
                    alert(arr[2]);
                    display("init2", -1);
                    gvYongShuiLYQK.PerformCallback();
                }
            }
        }

        function InitText1() {
            cbmQuXian.SetText("");
            //计划户数
            txtJiHuaH_HJ.SetText("");
            txtJiHuaH_GY.SetText("");
            txtJiHuaH_FGY.SetText("");
            //计划水量
            txtJiHuaS_HJ.SetText("");
            txtJiHuaS_GY.SetText("");
            txtJiHuaS_FGY.SetText("");
            //新水量
            txtXinShuiL_HJ.SetText("");
            txtXinShuiL_GY.SetText("");
            txtXinShuiL_FGY.SetText("");
            //加价水量
            txtJiaJiaSL_HJ.SetText("");
            txtJiaJiaSL_GY.SetText("");
            txtJiaJiaSL_FGY.SetText("");
            //加价水费
            txtJiaJiaSF_HJ.SetText("");
            txtJiaJiaSF_GY.SetText("");
            txtJiaJiaSF_FGY.SetText("");
            //计划完成率
            txtJiaHuaWCL.SetText("");
            //供水总量
            txtGongShuiZL.SetText("");
            //计划用水率
            txtJiaHuaYSL.SetText("");
            //水平衡户数
            txtShuiPingWCHS.SetText("");
            //节水项目数
            txtJieShuiXMS.SetText("");
            //最高日节水量
            txtZuiGaoRJSL.SetText("");
            //节水项目资金
            txtJieShuiXMZJ.SetText("");
            //自筹资金
            txtZiChouZJ.SetText("");
            //节水器具安装件套
            txtJieShuiQJTS.SetText("");
            //节水器具安装日节
            txtJieShuiQJSL.SetText("");
            //财政节水资金投入
            txtCaiZhengZJTR.SetText("");
        }

        function InitText2() {
            cmbquxian2.SetText("");
            //工业用新水量
            txtGongYeXSL.SetText("");
            //冷却新水量
            txtLengQueXSL.SetText("");
            //工业用水重复
            txtGongYeCFL.SetText("");
            //间接冷却水循
            txtLengQueXHL.SetText("");
            //工业用水重复
            txtGongYeCFLv.SetText("");
            //间接冷却水循
            txtLengQueXHLv.SetText("");
            //锅炉产汽量
            txtGuoLuCQL.SetText("");
            //工艺用新水量
            txtGongYiXSL.SetText("");
            //锅炉蒸汽冷凝
            txtGuoLuHYL.SetText("");
            //工艺水回用量
            txtGongYiHYL.SetText("");
            //锅炉蒸汽冷凝
            txtGuoLuHYLv.SetText("");
            //工艺水回用率
            txtGongYiHYLv.SetText("");
            //工业总产值(现
            txtGongYeZCZ.SetText("");
            //万元产值新水
            txtWanYuanXSL.SetText("");
            //城市公共用新
            txtChengShiXSL.SetText("");
            //间接冷却用新
            txtLengQueXSL2.SetText("");
            //城市公共用水
            txtChengShiLYL.SetText("");
            //间接冷却水循
            txtLengQueXHL2.SetText("");
            //城市公共用水
            txtChengShiLYL.SetText("");
            //间接冷却水循
            txtLengQueXHLv.SetText("");
            //非常规
            txtFeiChangGSL.SetText("");
            //海水利用量
            txtHaiShuiLYL.SetText("");
            //雨水利用量
            txtYuShuiLYL.SetText("");
        }

        //用水利用情况计算率，
        function ZDJS(obj1, obj2, obj3) {
            if (obj1.GetText() != "" && obj2.GetText() != "") {
                obj3.SetText(parseInt(obj2.GetText()) / (parseInt(obj1.GetText()) + parseInt(obj2.GetText())) * 100);
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <div class="tabletitle1" align="center">
            效区县计划用水
        </div>
        
                <dx:ASPxCallback ID="ASPxCallback1" ClientInstanceName="ASPxCallback1" runat="server" OnCallback="ASPxCallback1_Callback" ClientSideEvents-CallbackComplete="function(s,e){ASPxCallback1Complete(e.result);}"></dx:ASPxCallback>              
        <asp:UpdatePanel ID="updatePanel1" runat="server">
            <ContentTemplate>
                
                <dx:ASPxPageControl ID="ASPxPageControl1" runat="server" ActiveTabIndex="0" Width="98%" >
                    <TabPages>
                        <dx:TabPage Text="计划用水情况">
                            <ContentCollection>
                                <dx:ContentControl>
                                    <dx:ASPxHiddenField ID="hdCollection" ClientInstanceName="hdCollection" runat="server"></dx:ASPxHiddenField>
                                    <table style="width: 100%">
                                        <tr>
                                            <td style="text-align: right">水量年：
                                            </td>
                                            <td style="width: 10%">
                                                <dx:ASPxComboBox ID="cmbShuiLiangN" runat="server" ValueType="System.String" Width="100%">
                                         
                                                </dx:ASPxComboBox>
                                            </td>
                                            <td style="text-align: right">水量月：
                                            </td>
                                            <td style="width: 10%">
                                                <dx:ASPxComboBox ID="cmbShuiLiangY" runat="server" ValueType="System.String" Width="100%">
                                                    
                                                </dx:ASPxComboBox>
                                            </td>
                                            <td style="text-align: right">区县:
                                            </td>
                                            <td style="width: 10%">
                                                <dx:ASPxComboBox ID="cmbquxian" runat="server" ValueType="System.String" Width="100%">
                                                    <Items>
                                                        <dx:ListEditItem Text="全部" Value="quanbu" Selected="true" />
                                                    </Items>
                                                </dx:ASPxComboBox>
                                            </td>
                                            <td style="text-align: right">
                                                <dx:ASPxLoadingPanel runat="server" ID="LoadPanel11" ClientInstanceName="LoadPanel" Text="正在查询"></dx:ASPxLoadingPanel>
                                                <dx:ASPxButton ID="btnChaZhao" runat="server" Text="查找" OnClick="btnChaZhao_Click" UseSubmitBehavior="false">
                                                    <ClientSideEvents Click="function(s,e){LoadPanel.Show();}" />
                                                </dx:ASPxButton>
                                            </td>
                                            <td>
                                                <dx:ASPxButton ID="btnExportExcel" runat="server" Text="导出excel" UseSubmitBehavior="false">
                                                    <ClientSideEvents Click="function(s,e){btnExport.OnClick();}" />
                                                </dx:ASPxButton>
                                            </td>
                                            <td>
                                                <dx:ASPxLabel ID="labZongJiLu" runat="server" Text="" ForeColor="Blue"></dx:ASPxLabel>
                                            </td>
                                            <td>
                                                <%--<table align="right">
                                                    <tr>
                                                        <td>
                                                            <dx:ASPxButton ID="btnExportExcel" runat="server" Text="导出到Excel" OnClick="btnExportExcel_Click" Visible="false"></dx:ASPxButton>
                                                        </td>
                                                       
                                                        <td>
                                                            <dx:ASPxButton ID="btnPrint" runat="server" Text="打印" OnClick="btnPrint_Click"></dx:ASPxButton>
                                                        </td>
                                                    </tr>
                                                </table>--%>
                                            </td>
                                        </tr>
                                    </table>
                                    <div id="gridTab1">  <%--FixedStyle="Left"--%>
                                    <dx:ASPxGridView ID="gvJiHuaYS" ClientInstanceName="gvJiHuaYS" runat="server" AutoGenerateColumns="False" KeyFieldName="ID" Theme="Aqua1" 
                                        OnCustomCallback="gvJiHuaYS_CustomCallback" Width="100%">
                                        <Columns>                                            
                                            <dx:GridViewDataTextColumn FieldName="I_YM" Caption="年月" Width="60px">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="S_QUXIAN" Caption="区县" Width="60px">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="I_GONGYEHS" Caption="工业户数" Width="80px">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="I_FEIGONGYHS" Caption="非工业户数" Width="80px">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="I_HEJIHS" Caption="合计户数" Width="80px">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="I_GONGYEJHL" Caption="工业计划量" Width="80px">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="I_FEIGONGYJHL" Caption="非工业计划量" Width="90px">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="I_HEJIJHL" Caption="合计计划量" Width="80px">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="I_GONGYEXSL" Caption="工业新水量" Width="80px">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="I_FEIGONGYXSL" Caption="非工业新水量" Width="90px">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="I_HEJIXSL" Caption="合计新水量" Width="80px">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="I_GONGYEJJL" Caption="工业加价量" Width="80px">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="I_FEIGONGYJJL" Caption="非工业加价量" Width="90px">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="I_HEJIJJL" Caption="合计加价量" Width="80px">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="N_GONGYEJJF" Caption="工业加价费" Width="80px" PropertiesTextEdit-DisplayFormatString="0.00">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="N_FEIGONGYJJF" Caption="非工业加价费" Width="90px" PropertiesTextEdit-DisplayFormatString="0.00">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="N_HEJIJJF" Caption="合计加价费" Width="80px" PropertiesTextEdit-DisplayFormatString="0.00">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="N_JIHUAWCL" Caption="计划完成率" Width="80px" PropertiesTextEdit-DisplayFormatString="0.00">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="I_GONGSHUIZL" Caption="供水总量" Width="80px">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="N_JIHUAYSL" Caption="计划用水率" Width="80px" PropertiesTextEdit-DisplayFormatString="0.00">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="I_SHUIPINGHHS" Caption="水平衡户数" Width="80px">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="I_JIESHUIXMS" Caption="节水项目数" Width="80px">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="I_ZUIGAORJSL" Caption="最高日节水量" Width="90px">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="N_JIESHUIZJ" Caption="节水资金" Width="80px">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="N_ZICHOUZJ" Caption="自筹资金" Width="80px">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="I_JIESHUIQTS" Caption="节水器套数" Width="80px">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="I_JIESHUIQJSL" Caption="节水器节水量" Width="90px">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="N_CAIZHENGJSZJ" Caption="财政节水资金" Width="90px">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FixedStyle="Left" Width="45px">
                                                <DataItemTemplate>
                                                   <a href="#" onclick="display('edit','<%#Eval("ID")%>')">修改</a>
                                                </DataItemTemplate>
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FixedStyle="Left" Width="45px">
                                                <DataItemTemplate>
                                                    <a href="#" onclick="del('<%#Eval("ID")%>')">删除</a>
                                                </DataItemTemplate>
                                            </dx:GridViewDataTextColumn>
                                        </Columns>
                                        <Settings VerticalScrollableHeight="180" VerticalScrollBarMode="Auto" HorizontalScrollBarMode="Auto" />
                                    </dx:ASPxGridView>
                                        </div>
                                    <div style="text-align: right; width: 99.5%; padding-top: 6px; padding-bottom: 2px;">
                                        <dx:ASPxButton ID="tab1btnAdd" runat="server" Text="添加"  ClientInstanceName="tab1btnAdd" UseSubmitBehavior="false" AutoPostBack="false">
                                            <ClientSideEvents  Click="function(s,e){display('add',-1)}"/>
                                        </dx:ASPxButton>
                                    </div>
                                    <div id="tab1GridViewContentTable" runat="server" style="display:none;">
                                        <div class="tabletitle1" align="center">
                                            <dx:ASPxLabel ID="lblOperateTip" runat="server" ClientInstanceName="lblOperateTip" Text="添加"></dx:ASPxLabel>
                                        </div>
                                        <div style="height: 2px;">
                                        </div>
                                        <div>
                                            <table style="width: 90%; margin: auto;" border="0">
                                                <tr>
                                                    <td>
                                                        <table style="width: 100%">
                                                            <tr>
                                                                <td style="width: 25%; text-align: right;">水量年月  
                                                                </td>
                                                                <td style="width: 8%">
                                                                    <dx:ASPxTextBox ID="txtShuiLiangNY" runat="server" Text="" Style="width: 80px;" ClientInstanceName="txtShuiLiangNY"  ClientEnabled="true"></dx:ASPxTextBox>
                                                                </td>
                                                                <td>
                                                                    <dx:ASPxComboBox ID="cbmQuXian" runat="server" Width="80px" ClientInstanceName="cbmQuXian">
                                                                    </dx:ASPxComboBox>
                                                                </td>
                                                                <td></td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <table style="width: 100%;" border="0">
                                                            <tr>
                                                                <td style="width: 25%;"></td>
                                                                <td style="width: 23%; padding-left: 2px; text-align: center;">合计
                                                                </td>
                                                                <td style="width: 28%; padding-left: 2px; text-align: center;">工业
                                                                </td>
                                                                <td style="width: 24%; padding-left: 2px; text-align: center;">非工业
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td style="text-align: right;">计划户数(户)：
                                                                </td>
                                                                <td>
                                                                    <dx:ASPxTextBox ID="txtJiHuaH_HJ" runat="server" Width="60%" HorizontalAlign="Right" ClientInstanceName="txtJiHuaH_HJ">
                                                                        <ClientSideEvents KeyUp="function(s,e){inputNum(s);}"  KeyPress="function(s,e){OnKeyNext(txtJiHuaH_GY);}"/>
                                                                    </dx:ASPxTextBox>
                                                                </td>
                                                                <td>
                                                                    <dx:ASPxTextBox ID="txtJiHuaH_GY" runat="server" Width="60%" HorizontalAlign="Right" ClientInstanceName="txtJiHuaH_GY">
                                                                        <ClientSideEvents KeyUp="function(s,e){inputNum(s);}"  KeyPress="function(s,e){OnKeyNext(txtJiHuaH_FGY);}"/>
                                                                    </dx:ASPxTextBox>
                                                                </td>
                                                                <td>
                                                                    <dx:ASPxTextBox ID="txtJiHuaH_FGY" runat="server" Width="60%" HorizontalAlign="Right" ClientInstanceName="txtJiHuaH_FGY">
                                                                        <ClientSideEvents KeyUp="function(s,e){inputNum(s);}"   KeyPress="function(s,e){OnKeyNext(txtJiHuaS_HJ);}"/>
                                                                    </dx:ASPxTextBox>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td style="text-align: right;">计划水量(立方米)：
                                                                </td>
                                                                <td>
                                                                    <dx:ASPxTextBox ID="txtJiHuaS_HJ" runat="server" Width="60%" HorizontalAlign="Right" ClientInstanceName="txtJiHuaS_HJ">
                                                                        <ClientSideEvents KeyUp="function(s,e){inputNum(s);}"  KeyPress="function(s,e){OnKeyNext(txtJiHuaS_GY);}"/>
                                                                    </dx:ASPxTextBox>
                                                                </td>
                                                                <td>
                                                                    <dx:ASPxTextBox ID="txtJiHuaS_GY" runat="server" Width="60%" HorizontalAlign="Right" ClientInstanceName="txtJiHuaS_GY">
                                                                        <ClientSideEvents KeyUp="function(s,e){inputNum(s);}"  KeyPress="function(s,e){OnKeyNext(txtJiHuaS_FGY);}"/>
                                                                    </dx:ASPxTextBox>
                                                                </td>
                                                                <td>
                                                                    <dx:ASPxTextBox ID="txtJiHuaS_FGY" runat="server" Width="60%" HorizontalAlign="Right" ClientInstanceName="txtJiHuaS_FGY">
                                                                        <ClientSideEvents KeyUp="function(s,e){inputNum(s);}"  KeyPress="function(s,e){OnKeyNext(txtXinShuiL_HJ);}"/>
                                                                    </dx:ASPxTextBox>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td style="text-align: right;">新 水 量(立方米)：
                                                                </td>
                                                                <td>
                                                                    <dx:ASPxTextBox ID="txtXinShuiL_HJ" runat="server" Width="60%" HorizontalAlign="Right" ClientInstanceName="txtXinShuiL_HJ">
                                                                        <ClientSideEvents KeyUp="function(s,e){inputNum(s);}"  KeyPress="function(s,e){OnKeyNext(txtXinShuiL_GY);}"/>
                                                                    </dx:ASPxTextBox>
                                                                </td>
                                                                <td>
                                                                    <dx:ASPxTextBox ID="txtXinShuiL_GY" runat="server" Width="60%" HorizontalAlign="Right" ClientInstanceName="txtXinShuiL_GY">
                                                                        <ClientSideEvents KeyUp="function(s,e){inputNum(s);}"  KeyPress="function(s,e){OnKeyNext(txtXinShuiL_FGY);}"/>
                                                                    </dx:ASPxTextBox>
                                                                </td>
                                                                <td>
                                                                    <dx:ASPxTextBox ID="txtXinShuiL_FGY" runat="server" Width="60%" HorizontalAlign="Right" ClientInstanceName="txtXinShuiL_FGY">
                                                                        <ClientSideEvents KeyUp="function(s,e){inputNum(s);}"  KeyPress="function(s,e){OnKeyNext(txtJiaJiaSL_HJ);}"/>
                                                                    </dx:ASPxTextBox>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td style="text-align: right;">加价水量(立方米)：
                                                                </td>
                                                                <td>
                                                                    <dx:ASPxTextBox ID="txtJiaJiaSL_HJ" runat="server" Width="60%" HorizontalAlign="Right" ClientInstanceName="txtJiaJiaSL_HJ">
                                                                        <ClientSideEvents KeyUp="function(s,e){inputNum(s);}"  KeyPress="function(s,e){OnKeyNext(txtJiaJiaSL_GY);}"/>
                                                                    </dx:ASPxTextBox>
                                                                </td>
                                                                <td>
                                                                    <dx:ASPxTextBox ID="txtJiaJiaSL_GY" runat="server" Width="60%" HorizontalAlign="Right" ClientInstanceName="txtJiaJiaSL_GY">
                                                                        <ClientSideEvents KeyUp="function(s,e){inputNum(s);}"  KeyPress="function(s,e){OnKeyNext(txtJiaJiaSL_FGY);}"/>
                                                                    </dx:ASPxTextBox>
                                                                </td>
                                                                <td>
                                                                    <dx:ASPxTextBox ID="txtJiaJiaSL_FGY" runat="server" Width="60%" HorizontalAlign="Right" ClientInstanceName="txtJiaJiaSL_FGY">
                                                                        <ClientSideEvents KeyUp="function(s,e){inputNum(s);}"  KeyPress="function(s,e){OnKeyNext(txtJiaJiaSF_HJ);}"/>
                                                                    </dx:ASPxTextBox>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td style="text-align: right;">加价水费(元)：
                                                                </td>
                                                                <td>
                                                                    <dx:ASPxTextBox ID="txtJiaJiaSF_HJ" runat="server" Width="60%" HorizontalAlign="Right" ClientInstanceName="txtJiaJiaSF_HJ">
                                                                        <ClientSideEvents KeyUp="function(s,e){inputFloat(s);}"  KeyPress="function(s,e){OnKeyNext(txtJiaJiaSF_GY);}"/>
                                                                    </dx:ASPxTextBox>
                                                                </td>
                                                                <td>
                                                                    <dx:ASPxTextBox ID="txtJiaJiaSF_GY" runat="server" Width="60%" HorizontalAlign="Right" ClientInstanceName="txtJiaJiaSF_GY">
                                                                        <ClientSideEvents KeyUp="function(s,e){inputFloat(s);}"  KeyPress="function(s,e){OnKeyNext(txtJiaJiaSF_FGY);}"/>
                                                                    </dx:ASPxTextBox>
                                                                </td>
                                                                <td>
                                                                    <dx:ASPxTextBox ID="txtJiaJiaSF_FGY" runat="server" Width="60%" HorizontalAlign="Right" ClientInstanceName="txtJiaJiaSF_FGY">
                                                                        <ClientSideEvents KeyUp="function(s,e){inputFloat(s);}"  KeyPress="function(s,e){OnKeyNext(txtJiaHuaWCL);}"/>
                                                                    </dx:ASPxTextBox>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td style="text-align: right;">计划完成率（%）：
                                                                </td>
                                                                <td>
                                                                    <dx:ASPxTextBox ID="txtJiaHuaWCL" runat="server" Text="" Width="60%" HorizontalAlign="Right" ClientInstanceName="txtJiaHuaWCL">
                                                                        <ClientSideEvents KeyUp="function(s,e){inputFloat(s);}"  KeyPress="function(s,e){OnKeyNext(txtGongShuiZL);}"/>
                                                                    </dx:ASPxTextBox>
                                                                </td>
                                                                <td style="text-align: right;">非居民有效供水总量（立方米）：
                                                                </td>
                                                                <td>
                                                                    <dx:ASPxTextBox ID="txtGongShuiZL" runat="server" Text="" Width="60%" HorizontalAlign="Right" ClientInstanceName="txtGongShuiZL">
                                                                        <ClientSideEvents KeyUp="function(s,e){inputNum(s);}"  KeyPress="function(s,e){OnKeyNext(txtJiaHuaYSL);}"/>
                                                                    </dx:ASPxTextBox>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td style="text-align: right;">计划用水率（%）：
                                                                </td>
                                                                <td>
                                                                    <dx:ASPxTextBox ID="txtJiaHuaYSL" runat="server" Text="" Width="60%" HorizontalAlign="Right" ClientInstanceName="txtJiaHuaYSL">
                                                                        <ClientSideEvents KeyUp="function(s,e){inputFloat(s);}"  KeyPress="function(s,e){OnKeyNext(txtShuiPingWCHS);}"/>
                                                                    </dx:ASPxTextBox>
                                                                </td>
                                                                <td style="text-align: right;">水平衡完成户数（户）：
                                                                </td>
                                                                <td>
                                                                    <dx:ASPxTextBox ID="txtShuiPingWCHS" runat="server" Text="" Width="60%" HorizontalAlign="Right" ClientInstanceName="txtShuiPingWCHS">
                                                                        <ClientSideEvents KeyUp="function(s,e){inputNum(s);}"  KeyPress="function(s,e){OnKeyNext(txtJieShuiXMS);}"/>
                                                                    </dx:ASPxTextBox>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td style="text-align: right;">节水项目数（项）：
                                                                </td>
                                                                <td>
                                                                    <dx:ASPxTextBox ID="txtJieShuiXMS" runat="server" Text="" Width="60%" HorizontalAlign="Right" ClientInstanceName="txtJieShuiXMS">
                                                                        <ClientSideEvents KeyUp="function(s,e){inputNum(s);}"  KeyPress="function(s,e){OnKeyNext(txtZuiGaoRJSL);}"/>
                                                                    </dx:ASPxTextBox>
                                                                </td>
                                                                <td style="text-align: right;">最高日节水量（立方米/日）：
                                                                </td>
                                                                <td>
                                                                    <dx:ASPxTextBox ID="txtZuiGaoRJSL" runat="server" Text="" Width="60%" HorizontalAlign="Right" ClientInstanceName="txtZuiGaoRJSL">
                                                                        <ClientSideEvents KeyUp="function(s,e){inputNum(s);}"  KeyPress="function(s,e){OnKeyNext(txtJieShuiXMZJ);}"/>
                                                                    </dx:ASPxTextBox>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td style="text-align: right;">节水项目资金投入（万元）：
                                                                </td>
                                                                <td>
                                                                    <dx:ASPxTextBox ID="txtJieShuiXMZJ" runat="server" Text="" Width="60%"  HorizontalAlign="Right" ClientInstanceName="txtJieShuiXMZJ">
                                                                        <ClientSideEvents KeyUp="function(s,e){inputFloat(s);}"  KeyPress="function(s,e){OnKeyNext(txtZiChouZJ);}"/>
                                                                    </dx:ASPxTextBox>
                                                                </td>
                                                                <td style="text-align: right;">其中:自筹资金投入（万元）：
                                                                </td>
                                                                <td>
                                                                    <dx:ASPxTextBox ID="txtZiChouZJ" runat="server" Text="" Width="60%" HorizontalAlign="Right" ClientInstanceName="txtZiChouZJ">
                                                                        <ClientSideEvents KeyUp="function(s,e){inputFloat(s);}"  KeyPress="function(s,e){OnKeyNext(txtJieShuiQJTS);}"/>
                                                                    </dx:ASPxTextBox>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td style="text-align: right;">节水器具安装件套数（套/件）：
                                                                </td>
                                                                <td>
                                                                    <dx:ASPxTextBox ID="txtJieShuiQJTS" runat="server" Text="" Width="60%" HorizontalAlign="Right" ClientInstanceName="txtJieShuiQJTS">
                                                                        <ClientSideEvents KeyUp="function(s,e){inputNum(s);}"  KeyPress="function(s,e){OnKeyNext(txtJieShuiQJSL);}"/>
                                                                    </dx:ASPxTextBox>
                                                                </td>
                                                                <td style="text-align: right;">节水器具安装日节水量（立方米/日）：
                                                                </td>
                                                                <td>
                                                                    <dx:ASPxTextBox ID="txtJieShuiQJSL" runat="server" Text="" Width="60%" HorizontalAlign="Right" ClientInstanceName="txtJieShuiQJSL">
                                                                        <ClientSideEvents KeyUp="function(s,e){inputNum(s);}"  KeyPress="function(s,e){OnKeyNext(txtCaiZhengZJTR);}"/>
                                                                    </dx:ASPxTextBox>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td style="text-align: right;">财政节水专项资金投入（万元）：
                                                                </td>
                                                                <td>
                                                                    <dx:ASPxTextBox ID="txtCaiZhengZJTR" runat="server" Text="" Width="60%" HorizontalAlign="Right" ClientInstanceName="txtCaiZhengZJTR">
                                                                        <ClientSideEvents KeyUp="function(s,e){inputFloat(s);}"  />
                                                                    </dx:ASPxTextBox>
                                                                </td>
                                                                <td></td>
                                                                <td></td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                        <table id="GridViewButtonTable" runat="server" style="width: 100%">
                                            <tr>
                                                <td style="text-align: right;">
                                                    <hr />
                                                    <dx:ASPxButton ID="tab1btnSave" runat="server" Text="保存"  UseSubmitBehavior="false" AutoPostBack="false" ClientInstanceName="tab1btnSave">
                                                        <ClientSideEvents Click="function(s,e){save();}" />
                                                    </dx:ASPxButton>
                                                    <dx:ASPxButton ID="tab1btnCancel" runat="server" Text="放弃" UseSubmitBehavior="false" AutoPostBack="false">
                                                        <ClientSideEvents  Click="function(s,e){display('init',-1);}"/>
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                </dx:ContentControl>
                            </ContentCollection>
                        </dx:TabPage>
                        <dx:TabPage Text="用水利用情况">
                            <ContentCollection>
                                <dx:ContentControl>
                                    <table style="width: 100%">
                                        <tr>
                                            <td style="text-align: right">水量年：
                                            </td>
                                            <td style="width: 10%">
                                                <dx:ASPxComboBox ID="cmbShuiLiangN2" runat="server" ValueType="System.String" Width="100%">
                                                    
                                                </dx:ASPxComboBox>
                                            </td>
                                            <td style="text-align: right">水量月：
                                            </td>
                                            <td style="width: 10%">
                                                <dx:ASPxComboBox ID="cmbShuiLiangY2" runat="server" ValueType="System.String" Width="100%">
                                                    
                                                </dx:ASPxComboBox>
                                            </td>
                                            <td style="text-align: right">区县:
                                            </td>
                                            <td style="width: 10%">
                                                <dx:ASPxComboBox ID="cmbQuXianTab2" runat="server"  Width="100%">
                                                    <Items>
                                                        <dx:ListEditItem Text="全部" />
                                                    </Items>
                                                </dx:ASPxComboBox>
                                            </td>
                                            <td style="text-align: right">
                                                <dx:ASPxButton ID="btnChaZhao2" runat="server" Text="查找" OnClick="btnChaZhao2_Click" UseSubmitBehavior="false"></dx:ASPxButton>
                                            </td>
                                            <td>
                                                <dx:ASPxButton ID="btnExportExcel1" runat="server" Text="导出excel" UseSubmitBehavior="false">
                                                    <ClientSideEvents Click="function(s,e){btnExport.OnClick();}" />
                                                </dx:ASPxButton>
                                            </td>
                                            <td>
                                                <dx:ASPxLabel ID="labZongJiLu2" runat="server" Text="" ForeColor="Blue"></dx:ASPxLabel>
                                            </td>
                                          
                                        </tr>
                                    </table>
                                    <div id="gridTab2">
                                        <dx:ASPxGridView ID="gvYongShuiLYQK" ClientInstanceName="gvYongShuiLYQK" runat="server" AutoGenerateColumns="False" KeyFieldName="ID" Width="100%"
                                            ClientIDMode="AutoID" Settings-ShowVerticalScrollBar="true" OnCustomCallback="gvYongShuiLYQK_CustomCallback">
                                            <Columns>
                                                <dx:GridViewDataTextColumn FieldName="I_YM" Caption="年月" Width="60px">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="S_QUXIAN" Caption="区县" Width="60px">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="I_GONGYEXSL" Caption="工业用新水量" Width="90px">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="I_GONGYECFL" Caption="工业用水重复利用量" Width="140px">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="N_GONGYECFL" Caption="工业用水重复利用率" Width="140px" PropertiesTextEdit-DisplayFormatString="0.00">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="I_LENGQUEXSL" Caption="间接冷却用新水量" Width="120px">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="I_LENGQUEXHL" Caption="间接冷却水循环量" Width="120px">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="N_LENGQUEXHL" Caption="间接冷却水循环率" Width="120px" PropertiesTextEdit-DisplayFormatString="0.00">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="I_GONGYIXSL" Caption="工艺用新水量" Width="90px">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="I_GONGYIHYL" Caption="工艺水回用量" Width="90px">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="N_GONGYIHYL" Caption="工艺水回用率" Width="90px" PropertiesTextEdit-DisplayFormatString="0.00">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="I_GUOLUCQL" Caption="锅炉产气量" Width="80px">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="I_GUOLUHYL" Caption="锅炉蒸汽冷凝水回用量" Width="140px">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="N_GUOLUHYL" Caption="锅炉蒸汽冷凝水回用率" Width="140px" PropertiesTextEdit-DisplayFormatString="0.00">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="I_GONGYEZCZ" Caption="工业总产值(现价)" Width="110px">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="N_WANYUANXSL" Caption="万元产值新水量" Width="100px">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="I_CHENGSHIXSL" Caption="城市公共用新水量" Width="100px">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="I_CHENGSHICFL" Caption="城市公共用水重复利用量" Width="160px">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="N_CHENGSHICFL" Caption="城市公共用水重复利用率" Width="160px" PropertiesTextEdit-DisplayFormatString="0.00">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="I_JIANJIEXSL" Caption="城市公共用间接冷却用新水量" Width="178px">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="I_JIANJIEXHL" Caption="城市公共用间接冷却水循环量" Width="178px">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="N_JIANJIEXHL" Caption="城市公共用间接冷却水循环率" Width="178px" PropertiesTextEdit-DisplayFormatString="0.00">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="I_FEICHANGGSL" Caption="非常规水资源利用量" Width="130px">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="I_HAISHUILYL" Caption="海水利用量" Width="80px">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="I_YUSHUILYL" Caption="雨水利用量" Width="80px">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn Width="45px" FixedStyle="left">
                                                    <DataItemTemplate>
                                                        <a href="#" onclick="display('edit2','<%#Eval("ID")%>')">修改</a>
                                                    </DataItemTemplate>
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn Width="45px" FixedStyle="left">
                                                    <DataItemTemplate>
                                                        <a href="#" onclick="del2('<%#Eval("ID")%>')">删除</a>
                                                    </DataItemTemplate>
                                                </dx:GridViewDataTextColumn>
                                            </Columns>
                                            <Settings VerticalScrollBarMode="Visible" VerticalScrollableHeight="140" HorizontalScrollBarMode="Auto" />
                                            <SettingsPager Mode="EndlessPaging" PageSize="100" AlwaysShowPager="true" FirstPageButton-Visible="true" />
                                            <Settings ShowFooter="True" />
                                            <SettingsBehavior AllowFocusedRow="True"  ColumnResizeMode="Control" />
                                        </dx:ASPxGridView>
                                    </div>
                                    <div style="text-align: right; width: 99.5%; padding-top: 6px; padding-bottom: 2px;">
                                        <dx:ASPxButton ID="tab2btnAdd" runat="server" Text="添加" ClientInstanceName="tab2btnAdd" UseSubmitBehavior="false" AutoPostBack="false">
                                            <ClientSideEvents  Click="function(s,e){display('add2',-1)}"/>
                                        </dx:ASPxButton>
                                    </div>
                                    <div id="tab2GridViewContentTable" runat="server" style="display:none;">
                                        <div class="tabletitle1" align="center">
                                            <dx:ASPxLabel ID="ASPxLabel1" runat="server" ClientInstanceName="lblOperateTip" Text="添加"></dx:ASPxLabel>
                                        </div>
                                        <div style="height: 2px;">
                                        </div>
                                        <div>
                                            <table style="width:80%; margin:auto;" border="0">
                                            <tr>
                                                <td>
                                                    <div class="divCircle">
                                                        <table style="width: 100%">
                                                            <tr>
                                                                <td style="width: 23%; text-align: right;">水量年月  
                                                                </td>
                                                                <td style="width: 8%">
                                                                    <dx:ASPxTextBox ID="txtShuiLiangNY2" runat="server" Style="width: 80px;" ClientInstanceName="txtShuiLiangNY2"  ClientEnabled="true"></dx:ASPxTextBox>
                                                                </td>
                                                                <td>
                                                                    <dx:ASPxComboBox ID="cmbquxian2" ClientInstanceName="cmbquxian2" ClientEnabled="true" runat="server" ValueType="System.String" Width="80px">
                                                                    </dx:ASPxComboBox>
                                                                </td>
                                                                <td></td>
                                                            </tr>
                                                        </table>
                                                    </div>
                                                <fieldset id="actUseEdit1">
                                                    <legend >工业用水</legend>
                                                    <table style="width: 100%;" border="0" class="TableLayoutFont">
                                                        <tr>
                                                            <td style="width: 23%;text-align:right;">
                                                                工业用新水量
                                                            </td>
                                                            <td style="width: 17%;padding-left:2px;">
                                                                 <%--KeyPress="function(s,e){OnKeyNext(txtLengQueXSL);alert(1);}"  KeyUp="function(s,e){inputNum(s);}" --%>
                                                                <dx:ASPxTextBox ID="txtGongYeXSL" runat="server" style="width:95%;" HorizontalAlign="Right" ClientInstanceName="txtGongYeXSL">
                                                                    <ClientSideEvents KeyPress="function(s,e){OnKeyNext(txtLengQueXSL);}" KeyUp="function(s,e){inputNum(s);}"
                                                                       LostFocus="function(s,e){ZDJS(txtGongYeXSL,txtGongYeCFL,txtGongYeCFLv);}" />
                                                                </dx:ASPxTextBox>
                                                            </td>
                                                            <td style="width:10%;">立方米</td>
                                                            <td style="width: 20%;text-align:right;" >
                                                                间接冷却用新水量
                                                            </td>
                                                            <td style="width: 17%;padding-left:2px;">
                                                                <dx:ASPxTextBox ID="txtLengQueXSL" runat="server" style="width:95%;" HorizontalAlign="Right" ClientInstanceName="txtLengQueXSL">
                                                                    <ClientSideEvents  KeyUp="function(s,e){inputNum(s);}"  KeyPress="function(s,e){OnKeyNext(txtGongYeCFL);}"
                                                                         LostFocus="function(s,e){ZDJS(txtLengQueXSL,txtLengQueXHL,txtLengQueXHLv);}"/>
                                                                </dx:ASPxTextBox>
                                                            </td>
                                                            <td style="width:13%;" >立方米</td>
                                                        </tr>
                                                        <tr>
                                                           <td style="text-align:right;">
                                                                工业用水重复利用量
                                                            </td>
                                                            <td style="padding-left:2px;">
                                                                <dx:ASPxTextBox ID="txtGongYeCFL" runat="server" style="width:95%;" HorizontalAlign="Right" ClientInstanceName="txtGongYeCFL">
                                                                    <ClientSideEvents  KeyUp="function(s,e){inputNum(s);}" KeyPress="function(s,e){OnKeyNext(txtLengQueXHL);}"
                                                                        LostFocus="function(s,e){ZDJS(txtGongYeXSL,txtGongYeCFL,txtGongYeCFLv);}"/>
                                                                </dx:ASPxTextBox>
                                                            </td>
                                                            <td>立方米</td>
                                                            <td style="text-align:right;">
                                                                间接冷却水循环量
                                                            </td>
                                                            <td style="padding-left:2px;">
                                                                <dx:ASPxTextBox ID="txtLengQueXHL" runat="server" style="width:95%;" HorizontalAlign="Right" ClientInstanceName="txtLengQueXHL">
                                                                    <ClientSideEvents  KeyUp="function(s,e){inputNum(s);}" KeyPress="function(s,e){OnKeyNext(txtGongYeCFLv);}"
                                                                         LostFocus="function(s,e){ZDJS(txtLengQueXSL,txtLengQueXHL,txtLengQueXHLv);}"/>
                                                                </dx:ASPxTextBox>
                                                            </td>
                                                            <td >立方米</td>
                                                        </tr>
                                                        <tr>
                                                           <td style="text-align:right;">
                                                                工业用水重复利用率
                                                            </td>
                                                            <td style="padding-left:2px;">
                                                                <dx:ASPxTextBox ID="txtGongYeCFLv" runat="server" style="width:95%;" HorizontalAlign="Right" ClientInstanceName="txtGongYeCFLv" DisplayFormatString="0.00">
                                                                    <ClientSideEvents  KeyUp="function(s,e){inputFloat(s);}" KeyPress="function(s,e){OnKeyNext(txtLengQueXHLv);}"/>
                                                                </dx:ASPxTextBox>
                                                            </td>
                                                            <td >%</td>
                                                            <td style="text-align:right;">
                                                                间接冷却水循环率
                                                            </td>
                                                            <td style="padding-left:2px;">
                                                                <dx:ASPxTextBox ID="txtLengQueXHLv" runat="server" style="width:95%;" HorizontalAlign="Right" ClientInstanceName="txtLengQueXHLv" DisplayFormatString="0.00">
                                                                    <ClientSideEvents  KeyUp="function(s,e){inputFloat(s);}" KeyPress="function(s,e){OnKeyNext(txtGuoLuCQL);}"/>
                                                                </dx:ASPxTextBox>
                                                            </td>
                                                            <td >%</td>
                                                        </tr>
                                                    </table>
                                               <%-- </fieldset>
                                                <fieldset id="actUseEdit2">--%>
                                                    <hr />
                                                    <table style="width: 100%;" border="0" class="TableLayoutFont">
                                                        <tr>
                                                            <td style="width: 23%;text-align:right;" >
                                                                锅炉产汽量
                                                            </td>
                                                            <td style="width: 17%;padding-left:2px;">
                                                                <dx:ASPxTextBox ID="txtGuoLuCQL" runat="server" style="width:95%;" HorizontalAlign="Right" ClientInstanceName="txtGuoLuCQL">
                                                                    <ClientSideEvents  KeyUp="function(s,e){inputNum(s);}" KeyPress="function(s,e){OnKeyNext(txtGongYiXSL);}"
                                                                        LostFocus="function(s,e){
                                                                            if (txtGuoLuCQL.GetText() != '' && txtGuoLuHYL.GetText() != '') {
                                                                                txtGuoLuHYLv.SetText ( parseInt(txtGuoLuHYL.GetText()) / (parseInt(txtGuoLuCQL.GetText())) * 100);
                                                                              }
                                                                            
                                                                        }"/>
                                                                </dx:ASPxTextBox>
                                                            </td>
                                                            <td style="width:10%;" >立方米</td>
                                                            <td style="width: 20%;text-align:right;" >
                                                                工艺用新水量
                                                            </td>
                                                            <td style="width: 17%;padding-left:2px;">
                                                                <dx:ASPxTextBox ID="txtGongYiXSL" runat="server" style="width:95%;" HorizontalAlign="Right" ClientInstanceName="txtGongYiXSL">
                                                                    <ClientSideEvents  KeyUp="function(s,e){inputNum(s);}" KeyPress="function(s,e){OnKeyNext(txtGuoLuHYL);}"
                                                                        LostFocus="function(s,e){ZDJS(txtGongYiXSL,txtGongYiHYL,txtGongYiHYLv);}"/>
                                                                </dx:ASPxTextBox>
                                                            </td>
                                                            <td style="width:13%;" >立方米</td>
                                                        </tr>
                                                        <tr>
                                                           <td style="text-align:right;">
                                                                锅炉蒸汽冷凝水回用量
                                                            </td>
                                                            <td style="padding-left:2px;">
                                                                <dx:ASPxTextBox ID="txtGuoLuHYL" runat="server" style="width:95%;" HorizontalAlign="Right" ClientInstanceName="txtGuoLuHYL">
                                                                    <ClientSideEvents  KeyUp="function(s,e){inputNum(s);}" KeyPress="function(s,e){OnKeyNext(txtGongYiHYL);}"
                                                                        LostFocus="function(s,e){
                                                                            if (txtGuoLuCQL.GetText() != '' && txtGuoLuHYL.GetText() != '') {
                                                                                txtGuoLuHYLv.SetText ( parseInt(txtGuoLuHYL.GetText()) / (parseInt(txtGuoLuCQL.GetText())) * 100);
                                                                              }
                                                                            
                                                                        }"/>
                                                                </dx:ASPxTextBox>
                                                            </td>
                                                            <td >立方米</td>
                                                            <td style="text-align:right;">
                                                                工艺水回用量
                                                            </td>
                                                            <td style="padding-left:2px;">
                                                                <dx:ASPxTextBox ID="txtGongYiHYL" runat="server" style="width:95%;" HorizontalAlign="Right" ClientInstanceName="txtGongYiHYL">
                                                                    <ClientSideEvents  KeyUp="function(s,e){inputNum(s);}" KeyPress="function(s,e){OnKeyNext(txtGuoLuHYLv);}"
                                                                        LostFocus="function(s,e){ZDJS(txtGongYiXSL,txtGongYiHYL,txtGongYiHYLv);}"/>
                                                                </dx:ASPxTextBox>
                                                            </td>
                                                            <td >立方米</td>
                                                        </tr>
                                                        <tr>
                                                           <td style="text-align:right;">
                                                                锅炉蒸汽冷凝水回用率
                                                            </td>
                                                            <td style="padding-left:2px;">
                                                                <dx:ASPxTextBox ID="txtGuoLuHYLv" runat="server" style="width:95%;" HorizontalAlign="Right" ClientInstanceName="txtGuoLuHYLv" DisplayFormatString="0.00">
                                                                    <ClientSideEvents  KeyUp="function(s,e){inputFloat(s);}" KeyPress="function(s,e){OnKeyNext(txtGongYiHYLv);}"/>
                                                                </dx:ASPxTextBox>
                                                            </td>
                                                            <td >%</td>
                                                            <td style="text-align:right;">
                                                                工艺水回用率
                                                            </td>
                                                            <td style="padding-left:2px;">
                                                                <dx:ASPxTextBox ID="txtGongYiHYLv" runat="server" style="width:95%;" HorizontalAlign="Right" ClientInstanceName="txtGongYiHYLv" DisplayFormatString="0.00">
                                                                    <ClientSideEvents  KeyUp="function(s,e){inputFloat(s);}" KeyPress="function(s,e){OnKeyNext(txtGongYeZCZ);}"/>
                                                                </dx:ASPxTextBox>
                                                            </td>
                                                            <td >%</td>
                                                        </tr>
                                                    </table>
                                               <%-- </fieldset>
                                                <fieldset id="actUseEdit3">--%>
                                                    <hr />
                                                    <table style="width: 100%;" border="0" class="TableLayoutFont">
                                                        <tr>
                                                            <td style="width: 23%;text-align:right;" >
                                                                工业总产值(现金)
                                                            </td>
                                                            <td style="width: 17%;padding-left:2px;">
                                                                <dx:ASPxTextBox ID="txtGongYeZCZ" runat="server" style="width:95%;" HorizontalAlign="Right" ClientInstanceName="txtGongYeZCZ">
                                                                    <ClientSideEvents  KeyUp="function(s,e){inputNum(s);}" KeyPress="function(s,e){OnKeyNext(txtWanYuanXSL);}"
                                                                         LostFocus="function(s,e){
                                                                            if (txtGongYeXSL.GetText() != '' && txtGongYeZCZ.GetText() != '') {
                                                                                txtWanYuanXSL.SetText ( parseInt(txtGongYeXSL.GetText()) / (parseInt(txtGongYeZCZ.GetText())) );
                                                                              }
                                                                            
                                                                        }"/>
                                                                </dx:ASPxTextBox>
                                                            </td>
                                                            <td style="width:10%;" >万元</td>
                                                            <td style="width: 20%;text-align:right;" >
                                                                万元产值新水量
                                                            </td>
                                                            <td style="width: 17%;padding-left:2px;">
                                                                <dx:ASPxTextBox ID="txtWanYuanXSL" runat="server" style="width:95%;" HorizontalAlign="Right" ClientInstanceName="txtWanYuanXSL" DisplayFormatString="0.00">
                                                                    <ClientSideEvents  KeyUp="function(s,e){inputFloat(s);}" KeyPress="function(s,e){OnKeyNext(txtChengShiXSL);}"/>
                                                                </dx:ASPxTextBox>
                                                            </td>
                                                            <td style="width:13%;" >立方米/万元</td>
                                                        </tr>
                                                    </table>
                                                </fieldset>
                                                <fieldset id="actUseEdit4">
                                                    <legend >城市公共用水</legend>
                                                    <table style="width: 100%;" class="TableLayoutFont">
                                                        <tr>
                                                            <td style="width: 23%;text-align:right;" >
                                                                城市公共用新水量
                                                            </td>
                                                            <td style="width: 17%;padding-left:2px;">
                                                                <dx:ASPxTextBox ID="txtChengShiXSL" runat="server" style="width:95%;" HorizontalAlign="Right" ClientInstanceName="txtChengShiXSL">
                                                                    <ClientSideEvents  KeyUp="function(s,e){inputNum(s);}" KeyPress="function(s,e){OnKeyNext(txtLengQueXSL2);}"
                                                                        LostFocus="function(s,e){ZDJS(txtChengShiXSL,txtChengShiLYL,txtChengShiLYLv);}"/>
                                                                </dx:ASPxTextBox>
                                                            </td>
                                                            <td style="width:10%;" >立方米</td>
                                                            <td style="width: 20%;text-align:right;" >
                                                                间接冷却用新水量
                                                            </td>
                                                            <td style="width: 17%;padding-left:2px;">
                                                                <dx:ASPxTextBox ID="txtLengQueXSL2" runat="server" style="width:95%;" HorizontalAlign="Right" ClientInstanceName="txtLengQueXSL2">
                                                                    <ClientSideEvents  KeyUp="function(s,e){inputNum(s);}" KeyPress="function(s,e){OnKeyNext(txtChengShiLYL);}"
                                                                        LostFocus="function(s,e){ZDJS(txtLengQueXSL2,txtLengQueXHL2,txtLengQueXHLv2);}"/>
                                                                </dx:ASPxTextBox>
                                                            </td>
                                                            <td style="width:13%;" >立方米</td>
                                                        </tr>
                                                        <tr>
                                                           <td style="text-align:right;">
                                                                城市公共用水重复利用量
                                                            </td>
                                                            <td style="padding-left:2px;">
                                                                <dx:ASPxTextBox ID="txtChengShiLYL" runat="server" style="width:95%;" HorizontalAlign="Right" ClientInstanceName="txtChengShiLYL">
                                                                    <ClientSideEvents  KeyUp="function(s,e){inputNum(s);}" KeyPress="function(s,e){OnKeyNext(txtLengQueXHL2);}"
                                                                        LostFocus="function(s,e){ZDJS(txtChengShiXSL,txtChengShiLYL,txtChengShiLYLv);}"/>
                                                                </dx:ASPxTextBox>
                                                            </td>
                                                            <td >立方米</td>
                                                            <td style="text-align:right;">
                                                                间接冷却水循环量
                                                            </td>
                                                            <td style="padding-left:2px;">
                                                                <dx:ASPxTextBox ID="txtLengQueXHL2" runat="server" style="width:95%;" HorizontalAlign="Right" ClientInstanceName="txtLengQueXHL2">
                                                                    <ClientSideEvents  KeyUp="function(s,e){inputNum(s);}" KeyPress="function(s,e){OnKeyNext(txtChengShiLYLv);}"
                                                                         LostFocus="function(s,e){ZDJS(txtLengQueXSL2,txtLengQueXHL2,txtLengQueXHLv2);}"/>
                                                                </dx:ASPxTextBox>
                                                            </td>
                                                            <td >立方米</td>
                                                        </tr>
                                                        <tr>
                                                           <td style="text-align:right;">
                                                                城市公共用水重复利用率
                                                            </td>
                                                            <td style="padding-left:2px;">
                                                                <dx:ASPxTextBox ID="txtChengShiLYLv" runat="server" style="width:95%;" HorizontalAlign="Right" ClientInstanceName="txtChengShiLYLv" DisplayFormatString="0.00">
                                                                    <ClientSideEvents  KeyUp="function(s,e){inputFloat(s);}" KeyPress="function(s,e){OnKeyNext(txtLengQueXHLv2);}"/>
                                                                </dx:ASPxTextBox>
                                                            </td>
                                                            <td >%</td>
                                                            <td style="text-align:right;"">
                                                                间接冷却水循环率
                                                            </td>
                                                            <td style="padding-left:2px;">
                                                                <dx:ASPxTextBox ID="txtLengQueXHLv2" runat="server" style="width:95%;" HorizontalAlign="Right" ClientInstanceName="txtLengQueXHLv2" DisplayFormatString="0.00">
                                                                    <ClientSideEvents  KeyUp="function(s,e){inputFloat(s);}" KeyPress="function(s,e){OnKeyNext(txtFeiChangGSL);}"/>
                                                                </dx:ASPxTextBox>
                                                            </td>
                                                            <td >%</td>
                                                        </tr>
                                                    </table>
                                                </fieldset>
                                                <fieldset id="actUseEdit5">
                                                <legend >非常规水资源利用量</legend>
                                                <table style="width:100%;" border="0" class="TableLayoutFont">
                                                    <tr>
                                                        <td style="text-align:right;" >
                                                            合计:
                                                        </td>
                                                        <td style="padding-left:2px;">
                                                            <dx:ASPxTextBox ID="txtFeiChangGSL" runat="server" style="width:95%;" HorizontalAlign="Right" ClientInstanceName="txtFeiChangGSL">
                                                                <ClientSideEvents  KeyUp="function(s,e){inputNum(s);}" KeyPress="function(s,e){OnKeyNext(txtHaiShuiLYL);}"/>
                                                            </dx:ASPxTextBox>
                                                        </td>
                                                        <td>
                                                            立方米
                                                        </td>
                                                        <td colspan="3"></td>
                                                    </tr>
                                                    <tr>
                                                        <td  style="width: 23%;text-align:right;" >
                                                            海水利用量:
                                                        </td>
                                                        <td style="width: 17%;"">
                                                            <dx:ASPxTextBox ID="txtHaiShuiLYL" runat="server" style="width:95%;" HorizontalAlign="Right" ClientInstanceName="txtHaiShuiLYL">
                                                                <ClientSideEvents  KeyUp="function(s,e){inputNum(s);}" KeyPress="function(s,e){OnKeyNext(txtYuShuiLYL);}"
                                                                    LostFocus="function(s,e){
                                                                        if(txtHaiShuiLYL.GetText()!=''){
                                                                            var hj=parseInt(txtFeiChangGSL.GetText()!=''?txtFeiChangGSL.GetText():0);
                                                                            txtFeiChangGSL.SetText(hj+parseInt(txtHaiShuiLYL.GetText()));
                                                                        }
                                                                    }"/>
                                                            </dx:ASPxTextBox>
                                                        </td>
                                                        <td style="width: 10%;" >
                                                            立方米
                                                        </td>
                                                        <td style="width:20%;text-align:right;" >
                                                            雨水利用量:
                                                        </td>
                                                        <td style="width:17%;padding-left:2px;">
                                                            <dx:ASPxTextBox ID="txtYuShuiLYL" runat="server" style="width:95%;" HorizontalAlign="Right" ClientInstanceName="txtYuShuiLYL">
                                                                <ClientSideEvents  KeyUp="function(s,e){inputNum(s);}" 
                                                                    LostFocus="function(s,e){
                                                                        if(txtYuShuiLYL.GetText()!=''){
                                                                            var hj=parseInt(txtFeiChangGSL.GetText()!=''?txtFeiChangGSL.GetText():0);
                                                                            txtFeiChangGSL.SetText(hj+parseInt(txtYuShuiLYL.GetText()));
                                                                        }
                                                                    }"/>
                                                            </dx:ASPxTextBox>
                                                        </td>
                                                        <td style="width:13%;" >
                                                            立方米
                                                        </td>
                                                    </tr>
                                                </table>
                                            </fieldset>
                                                </td>
                                            </tr>
                                        </table>
                                        </div>
                                        <table style="width: 100%">
                                            <tr>
                                                <td style="text-align: right;">
                                                    <hr />
                                                    <dx:ASPxButton ID="tab2btnSave" runat="server" Text="保存"  AutoPostBack="false" UseSubmitBehavior="false">
                                                        <ClientSideEvents Click="function(s,e){save2();}" />
                                                    </dx:ASPxButton>
                                                    <dx:ASPxButton ID="tab2btnCancel" runat="server" Text="放弃" AutoPostBack="false" UseSubmitBehavior="false">
                                                         <ClientSideEvents  Click="function(s,e){display('init2',-1);}"/>
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                    </div>   
                                </dx:ContentControl>
                            </ContentCollection>
                        </dx:TabPage>
                    </TabPages>
                </dx:ASPxPageControl>
            </ContentTemplate>
        </asp:UpdatePanel>
        <div style="display:none;">
            <dx:ASPxGridViewExporter ID="ASPxGridViewExporter1" runat="server"></dx:ASPxGridViewExporter>
            <dx:ASPxButton ID="btnExport" runat="server" Text="导出EXCEL" OnClick="btnExport_Click" UseSubmitBehavior="false">
            </dx:ASPxButton>
        </div>
    </form>
</body>
</html>


